package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.system.mapper.ServiceProviderMapper;
import com.ruoyi.common.core.domain.entity.ServiceProvider;
import com.ruoyi.system.service.IServiceProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务人员Service业务层处理
 */
@Service
public class ServiceProviderServiceImpl implements IServiceProviderService {

    @Autowired
    private ServiceProviderMapper serviceProviderMapper;

    @Override
    public List<ServiceProvider> selectServiceProviderList(ServiceProvider serviceProvider) {
        return serviceProviderMapper.selectServiceProviderList(serviceProvider);
    }

    @Override
    public ServiceProvider selectServiceProviderById(Long id) {
        return serviceProviderMapper.selectServiceProviderById(id);
    }

    @Override
    public int insertServiceProvider(ServiceProvider serviceProvider) {
        return serviceProviderMapper.insertServiceProvider(serviceProvider);
    }

    @Override
    public int updateServiceProvider(ServiceProvider serviceProvider) {
        return serviceProviderMapper.updateServiceProvider(serviceProvider);
    }

    @Override
    public int deleteServiceProviderById(Long id) {
        return serviceProviderMapper.deleteServiceProviderById(id);
    }

    @Override
    public int deleteServiceProviderByIds(Long[] ids) {
        return serviceProviderMapper.deleteServiceProviderByIds(ids);
    }

    @Override
    public List<ServiceProvider> selectRecommendedServiceProviderList(boolean isRecommended) {
        return serviceProviderMapper.selectRecommendedServiceProviderList(isRecommended);
    }
}
